package nl.alwinzwets.visuals
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.text.TextField;
	
	[Embed(source="../../../../assets/DNA.swf", symbol="DNA")]
	
	public class DNA extends MovieClip
	{
		public var uitslag:MovieClip;
		public var pctval:TextField;
 
		public function DNA()
		{
			pctval = new TextField();
			pctval.text = "50%";
			pctval.x = 55;
			pctval.y = 65;
			pctval.visible = false;
			addChild(pctval);
			
			addEventListener(Event.ENTER_FRAME, enterFrame);
		}
		
		private function enterFrame(e:Event):void
		{
			if(currentFrame == 117)
			{
				pctval.visible = true;
				stop();
			} else {
				pctval.visible = false;
			}
		}

	}
}

